﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Yipusoft.Evaluate.Model;

namespace Yipusoft.Evaluate.BLL
{
    public class AwardItem
    {
        public static bool Exsits(int ItemID)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.Exsits(ItemID);
        }
        public static int Insert(AwardItemInfo AwardItem)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.Insert(AwardItem);
        }
        public static bool Update(AwardItemInfo AwardItem)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.Update(AwardItem);
        }
        public static bool Delete(int ItemID)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.Delete(ItemID);
        }
        public static AwardItemInfo GetAwardItem(int ItemID)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.GetAwardItem(ItemID);
        }
        public static List<AwardItemInfo> GetList(string StrWhere)
        {
            Yipusoft.Evaluate.DAL.AwardItem dal = new Yipusoft.Evaluate.DAL.AwardItem();
            return dal.GetList(StrWhere);
        }
    }
}
